/*
 * @Author: _LJP 2634716776@qq.com
 * @Date: 2024-01-27 20:21:06
 * @LastEditors: _LJP 2634716776@qq.com
 * @LastEditTime: 2024-01-27 20:27:52
 * @FilePath: /my_-linux/Pro24/Hashi/unorderedTest/test.cpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include<iostream>
#include<unordered_map>

using namespace std;

void unordered_Test1()
{
    int arr[] = {1,1,4,5,2,3,3,6,4,4};
    
    unordered_map<int,int> m1;

    for(auto &it : arr){
        m1[it]++;
    }

    for(auto &it : m1){
        cout<<it.first<<" : "<<it.second<<endl;
    }
}

int main()
{

    unordered_Test1();

    // cout<<"hello world"<<endl;
    return 0;
}